#include <iostream>
#include "Stack.hpp"

int main()
{
    //进制转换器
    int a = 7;
    Stack<int>s;

    while(a)
    {
        s.Push(a % 2);
        a /= 2;
    }

    while(!s.IsEmpty())
    {
        std::cout<<s.GetTop();
        s.Pop();
    }
    std::cout<<std::endl;

    return 0;
}